﻿using System;

namespace Books.Models
{
    /// <summary>
    /// 图书信息
    /// </summary>
    public class Book
    {
        public int BookId { get; set; }

        /// <summary>
        /// 图书名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图书作者
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// 出版社名称
        /// </summary>
        public string Publisher { get; set; }

        /// <summary>
        /// 内容简介
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ChangedTime { get; set; }

        /// <summary>
        /// 出版时间
        /// </summary>
        public DateTime PublishDate { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        public int InStock { get; set; }

        /// <summary>
        /// 可借数量
        /// </summary>
        public int Available { get; set; }

        public List<BorrowRecord> borrowRecords { get; set; }

    }
}
